
package com.welsy.iter.model
{
   import mx.collections.ICollectionView;
   import com.adobe.cairngorm.model.ModelLocator;
   import com.welsy.util.Comparator;   
   import com.welsy.iter.vo.IterComponentsVO;
   import mx.collections.ArrayCollection;   

   
   [Bindable]
   public class IterModelLocator implements ModelLocator
   {
      private static var modelLocator : IterModelLocator;
      
      public static function getInstance() : IterModelLocator 
      {
      	if ( modelLocator == null )
      	{
      		modelLocator = new IterModelLocator();
      	}
      		
      	return modelLocator;
      }
      
      //Constructor should be private but current AS3.0 does not allow it yet (?)...
      public function IterModelLocator() 
      {	
         if ( modelLocator != null )
         {
         	throw new Error( "Only one IterModelLocator instance should be instantiated" );	
         }
      }
               
      public var iters : ICollectionView;        
      public var selectedIter : IterComponentsVO;
      public var iterElements : Array;
      public var isPublishIter : String = "false";                
   }
}
